Fix : libdir for autotools and meson are not the same…
authorFélix Piédallu <felix@piedallu.me>
Mon, 18 Dec 2017 14:06:57 +0000 (15:06 +0100)
committerFélix Piédallu <felix@piedallu.me>
Fri, 2 Feb 2018 15:37:20 +0000 (16:37 +0100)
babl/meson.build

index a46a7f5fd513656f19b11420ef2dbb2a5d64ef2d..b3058ccffa02e3efd6388a224135b33ad5ba52f8 100644 (file)
@@ -81,8 +81,8 @@ install_headers(babl_headers,
 babl = library(lib_name,
   babl_sources,
   include_directories: [ rootInclude, bablBaseInclude],
-  c_args:   [ '-DLIBDIR="' + get_option('libdir') + '"', ],
-  cpp_args: [ '-DLIBDIR="' + get_option('libdir') + '"', ],
+  c_args:   [ '-DLIBDIR="' + join_paths(get_option('prefix'), get_option('libdir')) + '"', ],
+  cpp_args: [ '-DLIBDIR="' + join_paths(get_option('prefix'), get_option('libdir')) + '"', ],
   link_with: [ babl_base, ],
   link_args: [ '-Wl,--version-script,' + version_script, ],
   dependencies: [ math, thread, dl, ],